﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using JTLeigh.Commerce.Spencer.Core.Service.Contracts;

namespace JTLeigh.Commerce.Spencer.Features.ProductFeedback.Service.Contracts.Runtime.GetProductFeedback
{

	/// <summary>
	/// Response data contract for the <see cref="IProductFeedbackRuntimeService.GetProductFeedback"/>
	/// operation.
	/// </summary>
	[DataContract(Name = "GetProductFeedbackRes", Namespace = "http://schemas.jtleigh.com/Commerce/Spencer/Features/ProductFeedback/1.0/Runtime/GetProductFeedback/")]
	public class GetProductFeedbackResponse
	{

		#region Properties

		/// <summary>
		/// Gets or sets a list of the product feedback for the specified product.
		/// </summary>
		/// <value>An <see cref="IList{TItem}"/> of <see cref="ProductFeedback"/>.</value>
		[DataMember(Name = "Feedback", IsRequired = true)]
		public IList<ProductFeedback> Feedback { get; set; }

        /// <summary>
        /// Gets or sets a dictionary of the product rating attributes relevant to the ratings for
        /// the specified product.
        /// </summary>
        /// <value>An <see cref="IDictionary{TKey,TValue}"/> of <see cref="ProductFeedbackBadge"/>
        /// keyed by badge identifier <see cref="Guid"/>.</value>
        [DataMember(Name = "FeedbackBadges", IsRequired = true)]
        public IDictionary<Guid, ProductFeedbackBadge> FeedbackBadges { get; set; }

		/// <summary>
		/// Gets or sets a dictionary of the product rating attributes relevant to the ratings for
		/// the specified product.
		/// </summary>
		/// <value>An <see cref="IDictionary{TKey,TValue}"/> of <see cref="ProductRatingAttribute"/>
		/// keyed by attribute identifier <see cref="Guid"/>.</value>
		[DataMember(Name = "RatingAttributes", IsRequired = true)]
		public IDictionary<Guid, ProductRatingAttribute> RatingAttributes { get; set; }

		/// <summary>
		/// Gets or sets a dictionary of the product recommendation attributes relevant to the 
		/// recommendations for the specified product.
		/// </summary>
		/// <value>An <see cref="IDictionary{TKey,TValue}"/> of <see cref="ProductRecommendationAttribute"/>
		/// keyed by attribute identifier <see cref="Guid"/>.</value>
		[DataMember(Name = "RecommendationAttributes", IsRequired = true)]
		public IDictionary<Guid, ProductRecommendationAttribute> RecommendationAttributes { get; set; }

        /// <summary>
        /// Gets or sets a dictionary of the product review attributes relevant to the reviews for
        /// the specified product.
        /// </summary>
        /// <value>An <see cref="IDictionary{TKey,TValue}"/> of <see cref="ProductReviewAttribute"/>
        /// keyed by attribute identifier <see cref="Guid"/>.</value>
        [DataMember(Name = "ReviewAttributes", IsRequired = true)]
        public IDictionary<Guid, ProductReviewAttribute> ReviewAttributes { get; set; }

        /// <summary>
        /// Gets or sets the optional pagination detail.
        /// </summary>
        /// <value>A <see cref="PaginationDetail"/> object, or <see langref="null"/> if the product
        /// feedback is not paginated.</value>
        [DataMember(Name = "PaginationDetail", IsRequired = false)]
        public PaginationDetail PaginationDetail { get; set; }

		#endregion // Properties

	}

}
